package cn.yunyichina.scheduler.jobs.service.register.impl;

import cn.yunyichina.provider.framework.dubbo.service.BaseService;
import cn.yunyichina.provider.framework.dubbo.service.OrderService;
import cn.yunyichina.provider.framework.dubbo.service.RegisterService;
import cn.yunyichina.provider.iface.entity.base.HospitalOutVo;
import cn.yunyichina.provider.iface.entity.base.OrderExtVo;
import cn.yunyichina.provider.iface.entity.base.Rule;
import cn.yunyichina.provider.iface.entity.common.Response;
import cn.yunyichina.provider.iface.entity.order.OrderRegSchedulerVo;
import cn.yunyichina.scheduler.jobs.service.register.AutoTakeNoService;
import cn.yunyichina.scheduler.jobs.service.register.RegisterUnlockService;
import cn.yunyichina.utils.commons.DateUtils;
import cn.yunyichina.utils.convert.JsonUtils;
import com.alibaba.fastjson.JSON;
import org.apache.commons.collections.map.HashedMap;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 自动取号
 * Created by wwb on 2018/01/11
 */
@Service
public class AutoTakeNoServiceImpl implements AutoTakeNoService {

    private static final Logger logger = LoggerFactory.getLogger(AutoTakeNoServiceImpl.class);
    @Override
    public void doExecute() {
            try {
                String data = "{}";
                Response autoTakeNoResp =  RegisterService.callUnderlineFromInternal("yyt.register.reg.reserve.record.autotake",data);
                logger.info("自动取号autoTakeNoResp=" + JsonUtils.toJsonString(autoTakeNoResp));
            }catch (Exception e){
                e.printStackTrace();
            }
    }

}
